import request from '@/utils/request';
export const serviceHead = '/aliorder'; // 项目前缀

// 查询阿里运单费用列表
export function getListService (params) {
  return request({
    url: `${serviceHead}/expense/list`,
    method: 'get',
    params
  });
}

// 查询阿里运单费用详细
export function getDetailService (id) {
  return request({
    url: `${serviceHead}/expense/${id}`,
    method: 'get'
  });
}

// 新增阿里运单费用
export function addService (params) {
  return request({
    url: `${serviceHead}/expense`,
    method: 'post',
    data: params
  });
}

// 修改阿里运单费用
export function updateService (params) {
  return request({
    url: `${serviceHead}/expense`,
    method: 'put',
    data: params
  });
}

// 删除阿里运单费用
export function delService (ids) {
  return request({
    url: `${serviceHead}/expense/${ids}`,
    method: 'delete'
  });
}